package controller.dept;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import common.entities.Page;
import entities.login.User;
import entities.organization.Dept;
import service.dept.DeptManageService;
import service.user.UserManageService;
/**
 * 部门管理Controller
 * @author hxl
 *
 */
@Controller
@RequestMapping("/deptManage")
public class DeptManageController {
	@Resource
	private DeptManageService deptManageService;
	/**
	 * 获得所有
	 * @return
	 */
	@RequestMapping(value="/getDepts")
	@ResponseBody
	public List<Dept> getUsers(){
		return deptManageService.getDepts();
	}
}
